# -*- coding: utf-8 -*-
__author__ = 'lychiyu'
__date__ = '17-9-8 下午10:17'

from django.conf.urls import url
from .views import CourseListView, CourseDetailView, CourseInfoView, CommentsView, AddCommentView, VideoPlayView

urlpatterns = [
    # 课程列表页面
    url(r'^list/$', CourseListView.as_view(), name="list"),
    url(r'^detail/(?P<course_id>\d+)/$', CourseDetailView.as_view(), name="detail"),
    # 课程的章节信息页面
    url(r'^info/(?P<course_id>\d+)/$', CourseInfoView.as_view(), name="info"),
    # 课程评论列表
    url(r'^comment/(?P<course_id>\d+)/$', CommentsView.as_view(), name="comment"),
    # 添加课程评论
    url(r'^add_comment/$', AddCommentView.as_view(), name="add_comment"),
    # 课程视频播放页面
    url(r'^video/(?P<video_id>\d+)/$', VideoPlayView.as_view(), name="video_play"),
]
